#ifndef CANVAS_HPP
#define CANVAS_HPP

#include <QFrame>

class Canvas : public QFrame
{
  Q_OBJECT

public:

  Canvas( QWidget* parent=0 );
  ~Canvas();

protected:

  virtual void paintEvent( QPaintEvent* event );
  virtual void mousePressEvent( QMouseEvent* event );
  virtual void mouseMoveEvent( QMouseEvent* event );

signals:

  void showMessage( const QString& );

private:

  class CanvasPrivate;
  QScopedPointer<CanvasPrivate>         _pd;
};

#endif // CANVAS_HPP